FROM {{ namespace }}/{{ image_prefix }}aodh-base:{{ tag }}
MAINTAINER {{ maintainer }}

{% import "macros.j2" as macros with context %}

{% if install_type == 'binary' %}
    {% if base_distro in ['centos', 'fedora', 'oraclelinux', 'rhel'] %}
       {% set aodh_listener_packages = ['openstack-aodh-listener'] %}
    {% elif base_distro in ['ubuntu'] %}
        {% set aodh_listener_packages = ['aodh-listener'] %}
    {% endif %}
{{ macros.install_packages(aodh_listener_packages | customizable("packages")) }}

{% endif %}
{% block aodh_listener_footer %}{% endblock %}
{% block footer %}{% endblock %}

{{ include_footer }}

USER aodh
